﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using zhangmenren.Db;
using zhangmenren.Models;

namespace zhangmenren.IService
{
    public interface IItemService: IDependency
    {
        Task<int> Add(ItemEntity entity);

        Task<IEnumerable<ItemEntity>> FindById(int id);
        Task<IEnumerable<ItemEntity>> FindByProductId(int productId);
    }
}
